
#include <jni.h>
#include <android/log.h>

#define	LOG_TAG	"usbhid"

enum {
    LOG_UNKNOWN = 0,
    LOG_DEFAULT,    /* only for SetMinPriority() */
    LOG_VERBOSE, LOG_DEBUG, LOG_INFO, LOG_WARN, LOG_ERROR, LOG_FATAL,
    LOG_SILENT,     /* only for SetMinPriority(); must be last */
};

#if	1
#define	D(x...)
#define	I(x...)
#else
#define	D(x...)	__android_log_print(LOG_DEBUG, LOG_TAG, x)
#define	I(x...)	__android_log_print(LOG_INFO, LOG_TAG, x)
#endif
#define	E(x...)	__android_log_print(LOG_ERROR, LOG_TAG, x)
